package com.feri.tiantian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@TableName("t_user_log")
@NoArgsConstructor
public class UserLog {
    @TableId(type = IdType.AUTO)
    private Integer id ;
    /** 用户id */
    private Integer uid ;
    /** 类型 */
    private Integer type ;
    /** 内容 */
    private String info ;
    /** IP */
    private String ip ;
    /** 创建时间 */
    private Date ctime ;

    public UserLog(Integer uid, Integer type, String info, String ip, Date ctime) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.ip = ip;
        this.ctime = ctime;
    }
}
